package org.rkuk.kasutil 
{
	import flash.display.Sprite;
	import flash.events.Event;
	import org.rkuk.kasutil.test.mediaSound.MediaSoundTestBed;
	import org.rkuk.kasutil.test.mediaStream.MediaStreamTestBed;
	import org.rkuk.kasutil.test.TestBed;
	
	/**
	 * ...
	 * @author rkuk
	 */
	public class Main extends Sprite 
	{
		
		public function Main():void 
		{
			if (stage) init();
			else addEventListener(Event.ADDED_TO_STAGE, init);
		}
		
		private function init(e:Event = null):void 
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			// entry point
			
			var testBed:TestBed;
			
			//replace the url of the sound file with yours
			testBed = new MediaSoundTestBed("http://kasutil.googlecode.com/svn/trunk/resource/sample.mp3");
			
			//replace the streamUrl and the connectionCmd with yours
			//testBed = new MediaStreamTestBed("http://kasutil.googlecode.com/svn/trunk/resource/sample.flv");
			
			addChild(testBed);
		}
	}
}